package com.bwie.parkdemo.adapter;

import android.support.annotation.NonNull;

import com.bwie.parkdemo.R;
import com.bwie.parkdemo.mvvm.model.entity.PunchPointEntity;
import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;

public class AddPunchAdapter extends BaseQuickAdapter<Object,BaseViewHolder> {

    public static final int TYPE = 9;

    public AddPunchAdapter() {
        super(R.layout.item_punch);
    }

    @Override
    protected void convert(@NonNull BaseViewHolder helper, Object item) {
        PunchPointEntity entity = (PunchPointEntity) item;
        helper.setText(R.id.punch_item_title,entity.pointName);
    }
}
